package Test;

import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {

        Scanner s =new Scanner(System.in);
        System.out.println("请输入第一个边长");
        int num1 = s.nextInt();
        System.out.println("请输入第二个边长");
        int num2 = s.nextInt();
        System.out.println("请输入第三个边长");
        int num3 = s.nextInt();

        if(num1 + num2 >num3 || num2 + num3 > num1 ){
            System.out.println("该三角形周长为：" + (num1 + num2 +num3));
        }else if(num1 + num3 > num2){
            System.out.println("该三角形周长为：Ϊ" + (num1 + num2 +num3));
        }else{
            System.out.println("该三边构不成三角形");
        }
    }
}
